package security.core.source;

import java.util.HashSet;
import java.util.Set;

public class UserDetail {
	private String username;
	private String password;
	private Set<String> authorisedRoles;
	
	public UserDetail(String username, String password) {
		this.username = username;
		this.password = password;
		this.authorisedRoles = new HashSet<String>();
	}
	
	public Boolean ValidatePassword(String password) {
		return this.password.equals(password);
	}
	
	// getters and setters
	public Set<String> getAuthorisedRoles() {
		return authorisedRoles;
	}
	public void setAuthorisedRoles(Set<String> authorisedRoles) {
		this.authorisedRoles = authorisedRoles;
	}
	public String getUsername() {
		return username;
	}	
}
